package Source_Program;

import java.util.Scanner;

public class program1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = new String();
        str = sc.next();
        int index1 = sc.nextInt();
        int index2 = sc.nextInt();
        str = str.substring(index1 - 1,index2);
        System.out.println(str.toUpperCase());
    }
}
